Turning Krieger’s MCS Lock into a Send Queue or, a Case for Reusing Clever, Mostly Lock-Free Code in a Different Area
نویسندگان
چکیده
Lockand wait-free data structures can be constructed in a generic way. However, when complex operations are involved, their practical use is rather limited due to high performance overheads and, in some settings, difficult to fulfil object lifecycles. While working on a synchronous inter-processor communication (IPC) path for multicore systems, we stumbled over a clever piece of code that did fulfil most of the properties that this path requires for its send queue. Unfortunately, this piece of code was by no means a data-structure publication or somehow related to send queues. Reporting on our experience in translating Krieger’s MCS-style reader-writer lock into a send queue for cross-processor IPC, we would like to make the point that sometimes, searching for code could end up in a valuable treasure chest even for largely different areas.
منابع مشابه
A Simple Correctness Proof of the MCS Contention-Free Lock
Mellor-Crummey and Scott present a spin-lock that avoids network contention by having processors spin on local memory locations. Their algorithm is equivalent to a lock-free queue with a special access pattern. The authors provide a complex and unintuitive proof of the correctness of their algorithm. In this paper, we provide a simple proof that the MCS lock is a correct critical section soluti...
متن کاملساخت قفل دیفرانسیل نیمه اتوماتیک برای تراکتور مسی فرگوسن 285
Differential lock is a means of improving tractor performance. This system causes the revolution of the axles to become equal. It, improves traction, decreases abrasion of drive tires, improves fuel consumption, and increases tractor work rate. Despite advantages of the system, differential lock has not been optimized in Iran. Thus, a semi-automatic differential lock system for MF-285 tractor w...
متن کاملساخت قفل دیفرانسیل نیمه اتوماتیک برای تراکتور مسی فرگوسن 285
Differential lock is a means of improving tractor performance. This system causes the revolution of the axles to become equal. It, improves traction, decreases abrasion of drive tires, improves fuel consumption, and increases tractor work rate. Despite advantages of the system, differential lock has not been optimized in Iran. Thus, a semi-automatic differential lock system for MF-285 tractor w...
متن کاملDesign Characteristics and Dynamic Modeling of a Cooperative Dual-Arm- Lock Manipulator
Recent developments in the area of smart structures indicate that variable geometry / stiffness truss network is of fundamental importance in designing smart transformable structures and systems for space applications. This paper presents the conceptual design and dynamic modeling of a cooperative re-configurabel dual-arm robotic structure called Dual-Arm Cam-Lock Manipulator. The Manipulator i...
متن کاملThe System-on-a-Chip Lock Cache
To my mother, Mihrican Saglam, and my father, Mustafa Saglam, for their love, support and selfless sacrifices. iii ACKNOWLEDGMENTS I am grateful to everyone who made this Ph.D. thesis possible. First, I owe special thanks to my supervisor, Professor Vincent Mooney, for his patience and guidance from the very beginning until the end. Also, I would like thank everyone in the Hardware/Software Cod...
متن کامل